package ooday04;

public class Chick extends Animal { //3个属性，2个方法

    Chick(){
    }
    Chick(String name,int age,String color){
        //super(name,age,color);
        this.name = name;
        this.age = age;
        this.color = color;
    }

    void fly(){// 特有的方法
        System.out.println( color + "的"+ name + "正在飞");
    }

     void eat(){// 重写eat
        System.out.println( color + "的"+ name + "正在吃东西");
    }


}
